package com.iflytak.dao;

import com.iflytak.pojo.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {

    //添加
    int addStudent(Student student);
    //删除
    int deleteStudentById(@Param("stuID") int id);
    //更新
    int updataStudent(Student student);
    //查询
    //查询一个
    Student queryStudentByid(@Param("stuID")int id);
    //查询全部
    List<Student> queryAllStudent();
   Student queryStudentByName(@Param("name1")String name1);



}
